<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page import="com.scalar.chiptrack.utils.ConfigManager"%>

<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/chiptrack-tags.tld" prefix="chiptrack" %>


<chiptrack:checkLogon sourcePage="/engineeringReport.do?action=engpull" />
<HTML><HEAD><TITLE>Scalarsoft - ChipTrac</TITLE>

<%String chipTracContext = "/" + ConfigManager.getChipTracContext();%>

<META http-equiv=Content-Type content="text/html; charset=windows-1252">
<LINK href="<%=chipTracContext%>/jsp/includes/stylesheets/scalarsoft.css" type=text/css rel=stylesheet>
<script>
var dateElement = "";
function openCalendar(dateValue)
{
dateElement = dateValue;
newWindow = window.open('<%=chipTracContext%>/jsp/includes/calendar.html','optionsPopup','channelmode=no,directories=no,toolbar=no,menubar=no,personalbar=no,status=no,scrollbars=no,width=180,height=440,resizable=no');
newWindow.moveTo(550,180);
newWindow.focus();
}
function assignDate(passedValue)
{   
dateElement.value=passedValue;
window.focus();
}
function dateRange(){

var period="";
var cat="";

if(document.engpullReport.user.value=='')
document.engpullReport.prompt1.value='0';

document.engpullReport.prompt2.value = document.engpullReport.fromdate.value;
if(document.engpullReport.prompt2.value=='')
document.engpullReport.prompt2.value='0';

document.engpullReport.prompt3.value = document.engpullReport.todate.value;
if(document.engpullReport.prompt3.value=='')
document.engpullReport.prompt3.value='0';
	
for (counter = 0; counter < engpullReport.category.length; counter++)
{
if (engpullReport.category[counter].checked){
	cat = engpullReport.category[counter].value;
	}
}

if ( cat=="textop" )
{
	document.engpullReport.action="<%=chipTracContext%>/jsp/report.jsp?nameReport=Engineering/Eng_Pull.rpt";
	document.engpullReport.submit();
}

else if ( cat=="graphop" )
{
	document.engpullReport.action="<%=chipTracContext%>/jsp/report.jsp?nameReport=Engineering/Eng_Pull_graph.rpt";
	document.engpullReport.submit();
}
}
</script>
<META content="MSHTML 5.50.4807.2300" name=GENERATOR></HEAD>
<BODY bgColor=#ffffff leftMargin=0 topMargin=0 marginheight="0" marginwidth="0">


<form name =engpullReport method="post">
<input type="hidden" name="prompt1">
<input type="hidden" name="prompt2">
<input type="hidden" name="prompt3">

<!-- Top Header Start-->
<%@ include file="/jsp/includes/header.jsp" %>
<!-- Top Header End-->

<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
  <TBODY>
  <TR>
	<td width='180' valign='top' background='<%=chipTracContext%>/jsp/includes/images/left_red_bg.gif'>

<!-- Side Navigation start -->
<%@ include file="/jsp/engineering/engg_report_menu.jsp" %>
<!-- end of the side navigations -->
<TD bgcolor="#ffffff">
<IMG height=9 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=8></TD>
<TD bgcolor="#ffffff"><IMG height=480 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=2></TD>
<TD valign="top" width="100%">

<IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/clear.gif" width=500 border=0>
<BR>
<!-- from here your body starts -->
<center><span class="NArialW">Engineering Pull Report</span></center>
<img src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height=20>

  <table border="0" width="90%" align=right>
    <tr><td colsapn=4><img src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height=10></td></tr>
    <tr>
      <td width="15%"><font class="NArialL">Part Number</font></td>
      <td width="20%">

	 <select name="prompt0" class="txfield"  >
     <option value="">Select Part Number</option>
    <logic:iterate id="partNumberList" name="partNumberList">
	<logic:notEqual name="partNumberList" value="null">
 <option value = <bean:write name="partNumberList" property="processStepId"/>>
 <bean:write name="partNumberList" property="marketingPartNo"/>
 </option>
 </logic:notEqual>
 </logic:iterate> 
   </select>
				
		</td>
      <td width="10%">&nbsp;</td>
      <td width="13%"><font class="NArialL">User</font></td>
      <td width="20%"><input type="text" name="user" size="20" class="txfield"></font></td>
       <td width="10%">&nbsp;</td>
    </tr>
    <tr>
	  <td width="15%"><font class="NArialL">From-Date</font></td>
	  <td width="20%"><font class="NArialL">
	<input type="text" name="fromdate" size="20" class="txfield"></font>&nbsp;&nbsp;&nbsp;
	<a href="javascript:openCalendar(document.engpullReport.fromdate)">
	<img border="0" src="<%=chipTracContext%>/jsp/includes/images/date_selector.gif" height=18 width=18></a></td>
	  <td width="10%">&nbsp;</td>
	  <td width="13%"><font class="NArialL">To-Date</font></td>
	  <td width="20%"><font class="NArialL">
		<input type="text" name="todate" size="20" class="txfield"></font>&nbsp;&nbsp;&nbsp;
	<a href="javascript:openCalendar(document.engpullReport.todate)">
	<img border="0" src="<%=chipTracContext%>/jsp/includes/images/date_selector.gif" height=18 width=18></a></td>
	   <td width="10%">&nbsp;</td>
    </tr>
 	<tr><td colspan=6><img src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height=10></td></tr>
    <tr><td colspan=6>
    	<input type="radio" name="category" value="textop" checked>
    		<font class="NArialL">Text Output </font>&nbsp;&nbsp;&nbsp;&nbsp;
    	<input type="radio" name="category" value="graphop">
    		<font class="NArialL">Graphical</font><font class="NArialL">Output</font>
    </td></tr>
    <tr><td colspan=6><img src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height=20></td></tr>
	<tr>
      <td colspan=6 align=center><a href="javascript:dateRange()"><img border="0" src="<%=chipTracContext%>/jsp/includes/images/submit.gif" width="53" height="17"></a>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
      <img border="0" src="<%=chipTracContext%>/jsp/includes/images/cancel.gif" width="53" height="17"></td>
    </tr>
  </table>

<!-- till here -->
<BR><BR><BR></TD>
<TD bgcolor="#ffffff"><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD>
</TR>
</TABLE>
<!-- Footer starts here -->
<%@ include file="/jsp/includes/footer.jsp" %>
<!-- footer end here -->
<form>
</BODY>
</HTML>
